<form class="layui-form" action="" method="post" name="myform" id="myform">
	<input type="hidden" name="__token__" value="{$Request.token}" />
	<div class="manniucms-sub-content">
		<div class="row">
			<div class="col-md-9">
				<div class="layui-box">
					<fieldset class="layui-elem-field">
						<legend><span class="color_read">【{$book.name}】</span> - 章节添加</legend>
						<div class="layui-field-box">
							<div class="layui-form-item">
								<label class="layui-form-label">分卷类别</label>
								<div class="layui-input-block">
									<select name="volume">
										{if empty($book.volumes)}
										<option value='0'>暂无分卷</option>
										{else}
										{volist name="$book.volumes" id="vo"}
											<option value="{$key}">{$vo}</option>
										{/volist}
										{/if}
									</select>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">章节名称</label>
								<div class="layui-input-block">
									<input type="text" name="chapter_name" id="mn_chapter_name" required  lay-verify="required" placeholder="章节名称" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">章节内容</label>
								<div class="layui-input-block">
									<!-- 配置文件 -->
								    <script type="text/javascript" src="__PUBLIC__js/ueditor/ueditor.config.js"></script>
								    <!-- 编辑器源码文件 -->
								    <script type="text/javascript" src="__PUBLIC__js/ueditor/ueditor.all.js"></script>
									<!-- 编辑器语言 -->
								    <script type="text/javascript" src="__PUBLIC__js/ueditor/lang/zh-cn/zh-cn.js"></script>
									<textarea id="mn_content" name="content"></textarea>
						        	<script type="text/javascript">
										var editorOption = {
											UEDITOR_HOME_URL: "__PUBLIC__js/ueditor/",
											UEDITOR_URL: "__PUBLIC__js/ueditor/",
											//serverUrl:"",
											lang: "zh-cn",
											initialContent:"",
											initialFrameWidth: "100%",
											initialFrameHeight: "400",
											initialStyle:"body{font-size:14px}",
											wordCount:false,
											elementPathEnabled:false,
											autoFloatEnabled:false,
											autoHeightEnabled:false,
											charset:"utf-8",
											zIndex:"1",
											pageBreakTag:"_page_break_tag_"
										};
										var editor = new baidu.editor.ui.Editor(editorOption);
										editor.render(mn_content);
									</script>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">章节状态</label>
								<div class="layui-input-block">
									<input type="radio" name="status" value="1" title="正常" checked>
									<input type="radio" name="status" value="0" title="禁用">
								</div>
							</div>
						</div>
					</fieldset>
				</div>
			</div>
			<div class="col-md-3 msc-form-side">
				<div class="layui-box">
					<fieldset class="layui-elem-field">
						<legend>功能</legend>
						<div class="layui-field-box">
							<div class="layui-form-item">
								<fieldset class="layui-elem-field layui-field-title">
									<legend>是否收费</legend>
								</fieldset>
								<div class="layui-input-block">
									<input type="radio" name="charge" value="1" title="收费" checked>
									<input type="radio" name="charge" value="0" title="免费">
								</div>
								<div class="layui-form-mid">只有当【是否收费】为【收费】状态时，【收费价格】才生效</div>
							</div>
							<div class="layui-form-item">
								<fieldset class="layui-elem-field layui-field-title">
									<legend>收费价格</legend>
								</fieldset>
								<div class="layui-input-block">
									<input type="text" value="" class="layui-input" placeholder="无需填写，保存后系统自动计算" disabled>
									<div class="layui-form-mid">章节内容按每 <span class="color_read">{$Think.config.mn_book.chapter_words_fees}</span> 字收费 <span class="color_read">1</span> {$Think.config.mn_book.read_money_name}，系统自动计算</div>
								</div>
							</div>
							<div class="layui-form-item">
								<fieldset class="layui-elem-field layui-field-title">
									<legend>章节字数</legend>
								</fieldset>
								<div class="layui-input-block">
									<input type="text" value="" class="layui-input" placeholder="无需填写，保存后系统自动计算" disabled>
								</div>
							</div>
						</div>
					</fieldset>
				</div>
			</div>
		</div>
	</div>
	<!-- 底部 -->
	<div class="manniucms-sub-footer">
		<div class="layui-box msf-box text-center">
			<div class="layui-inline">
				<button class="layui-btn" lay-submit><i class="layui-icon">&#xe60a;</i> 保存</button>
				<button type="button" class="layui-btn layui-btn-primary goback"><i class="layui-icon">&#xe603;</i> 返回</button>
			</div>
		</div>
	</div>
</form>